﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace MapleLeaf.Client.Pages {

    public class PluginState2StringConverter : IValueConverter {

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
            return ((bool)value) ? "停用" : "启用";
        }


        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) {
            throw new NotImplementedException();
        }


        public PluginState2StringConverter() {


        }

        static PluginState2StringConverter() {
            Default = new PluginState2StringConverter();
        }

        public static readonly PluginState2StringConverter Default;
    }
}
